﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="Tim-Kiem-May-Bay.aspx.cs" Inherits="Tim_Kiem_May_Bay" %>

<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
<title><%= Common.title %></title>
    <style>
        div#wrapperVMB
        {
            font-family: Tahoma, Arial;
            font-size: 12px;
        }
        
        div#wrapperVMB div#titleVMB {
            background: white url(Images/Dltn/dstour.png) no-repeat;
            color: white;
            font-weight: bold;
            height: 25px;
            padding: 5px 10px;
        }
        div#boxgridVMB
        {
            border: 1px solid red;
            border-radius: 5px;

        }
        .HeaderGridStyleVMB
        {
            color: white;
            background: red url(Images/Dltn/bgHeader.png) repeat;
            text-align: center;
            height: 30px;
            font-weight: bold;
        }
        
        .ItemGridStyleVMB
        {
            padding-left: 4px;
        }
        
        .DatVeStyleVMB
        {
            background: red url(Images/Dltn/bgHeader.png) repeat;
            color: white;
            font-weight: bold;
            border-radius: 5px;
            width: 60px;
            height: 25px;
            margin: 13%;
            cursor: pointer;
        }
        
        .PagerBreakStyleVMB {
            float: right;
        }
        
        div#wrapperVMB div#boxgridVMB .gridVMB {
            margin: 5px;
        }
        
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
   <!-- <div class="fb-comments" data-href='<%#Common.sPathUpLienKet+ HttpContext.Current.Request.Url.AbsolutePath.ToString()%>'
        data-width="660" data-num-posts="10">
    </div>
    -->
<div id="border">
    <div id="wrapperVMB">
        <div id="titleVMB">
            DANH SÁCH CÁC CHUYẾN BAY
        </div>
        <p class="msg"><asp:Literal ID="ltrMessage"  runat="server" Visible="true"></asp:Literal></p>
        <%
            if (ltrMessage.Visible == true)
            {    
        %>
                <div id="boxgridVMB" style="border:none;"></div>
        <%  }
            else
            { %>

        <div id="boxgridVMB">
            
            <asp:GridView ID="GrdVMB" runat="server"
                Width="99%" AutoGenerateColumns="False" CssClass="gridVMB">
                <Columns>
                    <asp:BoundField DataField="MaVe" HeaderText="Mã Vé" ItemStyle-Width="10%" ItemStyle-CssClass="ItemGridStyleVMB" />
                    <asp:TemplateField HeaderText="Nơi đi" ItemStyle-Width="20%" ItemStyle-CssClass="ItemGridStyleVMB">
                        <ItemTemplate>
                            <%# GetDiemDi(Eval("IdDiemDi")) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Nơi đến" ItemStyle-Width="20%" ItemStyle-CssClass="ItemGridStyleVMB">
                        <ItemTemplate>
                            <%# GetDiemDen(Eval("IdDiemDen")) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="QuaCanh" HeaderText="Quá Cảnh" ItemStyle-Width="15%" ItemStyle-CssClass="ItemGridStyleVMB" />
                    <asp:TemplateField HeaderText="Hãng Máy Bay" ItemStyle-Width="15%" ItemStyle-CssClass="ItemGridStyleVMB">
                        <ItemTemplate>
                            <%# GetHangMayBay(Eval("IdHangMayBay")) %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Gia" HeaderText="Giá" ItemStyle-Width="10%" ItemStyle-CssClass="ItemGridStyleVMB" />
                    <asp:TemplateField ItemStyle-Width="8%">
                        <ItemTemplate>
                            <div>
                                <asp:Button CssClass="DatVeStyleVMB" PostBackUrl="Default.aspx" runat="server" Text="Đặt Vé" />
                            </div>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <HeaderStyle CssClass="HeaderGridStyleVMB"></HeaderStyle>
                <RowStyle Height="30px"></RowStyle>
            </asp:GridView>
            <div style="height: 1px"></div>
        </div> <!-- End #boxgridVMB -->
        
        <div>
            <br />
            <cc1:Pager  CssClass="PagerBreakStyleVMB" ID="PageBeakGrid" runat="server" PreviousClause="Lùi" NextClause=" Tiến "
                LastClause="" FirstClause="" PageClause="Trang " OfClause="/" PageSize="10" OnCommand="PageBeakGrid_Command"
                ForeColor="#006600" Font-Bold="True" />
        </div>
        <%} %>
    </div><!-- End #wrapperVMB -->


    <div style="clear:both;"></div>
</div>
</asp:Content>
